package br.com.fogas.database.dao.impl;

import java.sql.SQLException;
import java.util.Collection;

import br.com.fogas.database.dao.IA957Dao;
import br.com.fogas.database.entidade.A957;
import br.com.fogas.webservice.parser.condicoes.T_A957_Item;

import com.j256.ormlite.dao.BaseDaoImpl;
import com.j256.ormlite.support.ConnectionSource;

public class A957Dao extends BaseDaoImpl<A957, Integer> implements IA957Dao {

	public A957Dao(ConnectionSource connectionSource) throws SQLException {
		super(connectionSource, A957.class);
	}

	@Override
	public void sincronizar(Collection<T_A957_Item> items) throws SQLException {
		for(T_A957_Item item: items) {
			create(new A957(item));
		}
	}
}
